﻿using System.Collections.Generic;
using System.Runtime.Serialization;
using KillBill.Services.DTO;
namespace KillBill.Business.Entities.ListEntities
{
    [DataContract(IsReference = true)]
    public class ProductList : KillBillDTO
    {
        [DataMember]
        public List<Product> Products { get; set; }

        [DataMember]
        public KillBillDTO DTO
        {
            get { return new KillBillDTO { Success = this.Success, Messages = this.Messages }; }
            set
            {
                this.Success = value.Success;
                this.Messages = value.Messages;
            }
        }
    }
}
